package com.zhaolei.springbootrabbitmq.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 15579
 * 2019/6/17 20:12
 * 文件说明：
 */
@Component
@RabbitListener(queues = "testTopic")
public class Consumer4 {
    @RabbitHandler
    public void showMessage(String message){
        System.out.println("testTopic接收到消息："+message);
    }
}
